// components/Blank/blank.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    pageData: {
      type: Object
    },
    CustID: {
      type: String
    },
    UnionStoreID: {
      type: String
    }
  },
  ready: function () {
    var that = this;
    var globalData = getApp().globalData;
    that.setData({ imgDomain: globalData.imgurl });
    wx.request({
      url: globalData.apiurl + '/magic/api/Activity/GetTeambuyingProducts',
      data: {
        "custID": this.properties.CustID,
        "unionStoreID": this.properties.UnionStoreID
      },
      method: 'get',
      header: {
        'content-type': 'application/json',
        'X_ManuName': globalData.manuName
      },
      success: function (responseData) {
        var element = responseData.data.content;
        that.setData({ TeambuyingProducts: element })

      }

    });



  },

  /**
   * 组件的初始数据
   */
  data: {
    TeambuyingProducts:null,
    imgDomain:""
  },

  /**
   * 组件的方法列表
   */
  methods: {

  }
})
